﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using SPPD.model;
using SPPD.controller;

namespace SPPD
{
    /// <summary>
    /// Interaction logic for Window1.xaml
    /// </summary>
    public partial class Window1 : Window
    {
        public pegawai pegawaiLogin = new pegawai();
        public Window1(pegawai pgawai)
        {
            InitializeComponent();
            pegawaiLogin = pgawai;
        }

        private void Button_Click(object sender, RoutedEventArgs e)
        {
            MainWindow main = new MainWindow();
            this.Hide(); main.Show();
        }

        private void Button_Click_1(object sender, RoutedEventArgs e)
        {
            bendahara_sppd sppd = new bendahara_sppd(pegawaiLogin);
            this.Hide(); sppd.Show();
        }

        private void Button_Click_2(object sender, RoutedEventArgs e)
        {
            bendahara_spj spj = new bendahara_spj(pegawaiLogin);
            this.Hide(); spj.Show();
        }
    }
}
